package com.project.maven.demo_maven.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.project.maven.demo_maven.entry.LoginEntity;
import com.project.maven.demo_maven.impl.IRegisterService;
import com.project.maven.demo_maven.mapper.IRegisterMapper;

/**
 * 注册服务
 * @author luzhenbang
 *
 */
@Service("registerService")
public class RegisterService implements IRegisterService {
    @Autowired
    IRegisterMapper mapper;
	@Override
	public int register(LoginEntity entity) {
		return mapper.register(entity);
	}
	
	@Override
	public int registerBatch(List<LoginEntity> list) {
		return mapper.registerBatch(list);
	}

	@Override
	public int updateBatch(List<LoginEntity> list) {
		return mapper.updateBatch(list);
	}

	@Override
	public int deleteBatch(List<LoginEntity> list) {
		return mapper.deleteBatch(list);
	}

	
}
